package data
{
	import data.type.MapLayerType;
	
	import flash.display.Bitmap;
	import flash.display.DisplayObject;

	/**
	 * 地图背景图片数据
	 * wuxi create on 2012-9-11 11:30:47
	 * */
	public class MapLayerData
	{
		public function MapLayerData()
		{
		}
		
		/**
		 * 图片基本信息 用来做上传处理
		 * */
		[Bindable]
		public var imageName:String;
		public var imagePath:String;
		public var imageData:DisplayObject;
		public var imageType:String;
		
		public var width:int;
		public var height:int;
		
		/**
		 * 位置信息
		 * */
		[Bindable]
		public var layerDepth:int;
		[Bindable]
		public var layerX:int;
		[Bindable]
		public var layerY:int;
		/**
		 * 图层处于前景还是后景
		 * */
		[Bindale]
		public var layer:int;
		
		public function destory():void{
			imageData = null;
		}
		
		public function get layerName():String{
			if(layer == MapLayerType.LAYER_FORE){
				return "近景"
			}
			else if(layer == MapLayerType.LAYER_BACK){
				return "远景"
			}
			return "似近非近";
		}
		
		
	}
}